package name.fowler.refactoring.simplestore;

public class DiscountCalculator {

	protected void updateFrequentRenterPoints(Customer customer, Rental rental) {
		customer.frequentRenterPoints++;
		if ((rental.getMovie().getPriceCode() == PriceCodes.NewRelease) && (rental.getDaysRented() > 1)) {
			customer.frequentRenterPoints++;
		}
	}
}
